package com.liu.lab10.service.impl;

import com.liu.lab10.dao.UserDao;
import com.liu.lab10.service.UserService;

public class UserServiceImpl implements UserService {
    private UserDao userDao;

    private int id;

    private String username;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void info(String id, String name) {
        System.out.println("UserServiceImpl"+id+":"+name);
    }
    public boolean login(String name,String password) {
        System.out.println("UserServiceImpl+登录成功");
        return true;
    }

    @Override
    public String toString() {
        return "UserServiceImpl{" +
                "userDao=" + userDao +
                ", id=" + id +
                ", username='" + username + '\'' +
                '}';
    }
}
